import { http } from '@/uni_modules/uview-plus';


// 登录
export function login(data: any) {
	return http.post('/login', data, {custom: {auth: false}});
}

// 注册
export function register(data: any) {
	return http.post('/register', data, {custom: {auth: false}});
}

/**
 * 退出登录
 */
export function logout() {
	return http.get('/logout');
}

// 获取登录用户信息
export function getUserInfo() {
	return http.get('/info');
}